<%--
  Created by IntelliJ IDEA.
  User: tkl
  Date: 2021/9/12
  Time: 19:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>标题页面</h1>
    <%
        String errorCode=request.getParameter("error");
        if(errorCode!="" && errorCode!=null){
            out.print("登录失败！");
        }

    %>
    <form action="login.do" method="post">
        <table border="1">
            <tr>
                <td>用户名</td>
                <td><input name="userName" type="text"></td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input name="userPwd"  type="password"></td>
            </tr>
            <tr>
                <td><input type="submit" value="登录"></td>
                <td><input type="reset" value="重置"></td>
            </tr>
        </table>
    </form>

</body>
</html>
